package com.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname FeignController
 * @Description TODO
 * @Date 2022/3/27 11:35
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@RestController
@RequestMapping("feign")
public class FeignController {

    @Value("${server.port}")
    private String port;

    @GetMapping("v1")
    public String v1Controller(){
        return "feign调用: "+port;
    }
}
